package com.macroye.manage.service.impl;

import com.macroye.entity.req.MangeLoginVo;
import com.macroye.manage.mapper.UserMapper;
import com.macroye.manage.service.UserService;
import com.macroye.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    /**
     * 管理员登录
     * @param mangeLoginVo
     * @return
     */
    @Override
    public Result<MangeLoginVo> manageLogin(MangeLoginVo mangeLoginVo) {
        MangeLoginVo mangeLoginVo1=userMapper.manageLogin(mangeLoginVo);
        return Result.success(mangeLoginVo1);
    }
}
